﻿@{
    ViewBag.Title = "选择用户";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var moduleId = $.request("moduleId");
    $(function () {
        $("#itemTree").treeview({
            showcheck: true,
            url: "/WorkFlowSetting/UserButton/GetSelectUserTreeJson"
        });
    });
    function submitForm() {
        var Ids = $("#itemTree").getCheckedNodes();
        
        top.CommentForm.setMemberID(String(Ids));
        $.modalClose();
        //$.submitForm({
        //    url: "/WorkFlowSetting/UserButton/SubmitSelectUser",
        //    param: { moduleId: moduleId, Ids: String(Ids) },
        //    success: function () {
        //        top.modulebutton.$("#gridList").resetSelection();
        //        top.modulebutton.$("#gridList").trigger("reloadGrid");
        //    }
        //})
    }
</script>

<div style="margin: 10px;">
    <div id="itemTree"></div>
</div>
